Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable holding enter to send #98

Merged
merged 3 commits into from
Mar 19, 2019

Conversation

bchrobot
Copy link
Member

@bchrobot bchrobot commented Mar 18, 2019

Intercept enter key at the underlying DOM <textarea> leaf. Prevent handling of down, unless it's combined with <shift>. Submit form on up to prevent spamming by holding.

Intercept enter key at the underlying DOM <textarea> leaf. Prevent handling of <enter> down, unless it's combined with <shift>. Submit form on <enter> up to prevent spamming by holding.
@bchrobot bchrobot requested a review from ben-pr-p March 18, 2019 18:03
@ben-pr-p ben-pr-p merged commit e757000 into politics-rewired/deploy Mar 19, 2019
@bchrobot bchrobot deleted the politics-rewired/disable-hold-enter branch March 19, 2019 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants